/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-22
 * Time: 下午9:22
 * To change this template use File | Settings | File Templates.
 */
Ext.define('Airways.view.system.roleuser.RoleRightView',{
    extend:'Ext.panel.Panel',
    alias:'widget.roleRightView',
    region:'center',
    header:false,
    frame:true,
    autoScroll: true,
    width:'50%',
    height:'100%',
    layout:{
        type:'anchor'
    },
    defaults:{
        split:true
    },
    initComponent:function(){
        this.items = this.buildItems();
        this.tbar = this.buildTbar();
        this.callParent(arguments);
    },
    buildItems:function(){
        var queryFormPanel = Ext.create('Airways.view.system.roleuser.UserQueryFormPanel');
        var gridPanel = Ext.create('Airways.view.system.roleuser.UserGridPanel');
        return [queryFormPanel,gridPanel]
    },
    buildTbar:function(){
        var centerBar = Ext.create('Ext.toolbar.Toolbar', {
            items: [{
                xtype:'button',
                text: '保存关联',
                action:'save',
                iconCls: 'savebutton'
            }]
        });
        return  centerBar;
    }
});
